<?php echo View::make('admin.common.header'); ?>

<div id="header">
    <?php echo View::make('admin.common.left')->with('is_dashboard', true); ?>
    <div class="fr1">

        <div class="main-content">

            <div class="box-positon">
                <div class="rpos">当前位置: 内容管理 - 新闻管理</div>
                <form class="ropt" action="/admin/news/manage">
                    <input class="add" type="submit" value="添加">
                </form>
                <div class="clear"></div>
            </div>

            <div class="body-box" id="list">

                <table class="footable">
                    <thead>
                        <tr>
                            <th data-class="expand">
                                <span title="">新闻标题</span>
                            </th>
                            <th data-hide="default">
                                <span title="">新闻内容</span>
                            </th>
                            <th>
                                <span title="">排序</span>
                            </th>
                            <th>
                                类型
                            </th>
                            <th data-type="numeric">
                                创建时间
                            </th>
                            <th data-type="string">
                                操作选项
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($news_list->results as $key => $value) { ?>
                            <tr>
                                <td><?php echo $value->title ?></td>
                                <td><?php echo $value->content ?></td>
                                <td>
                                    <a href="#" title="上移"><img src="/admin/img/up.gif" border="0"></a>
                                    <a href="#" title="下移"><img src="/admin/img/down.gif" border="0"></a>
                                </td>
                                <td><?php echo $value->type ?></td>
                                <td><?php echo $value->ctime ?></td>
                                <td align="center">
                                    <span class="small">
                                        <a href="/admin/news/manage?id=<?php echo $value->id; ?>" class="ed" title="编辑"><img alt="编辑" src="/admin/img/edit.gif"></a>
                                        &nbsp;
                                        <a href="/admin/news/del?id=<?php echo $value->id; ?>" class="del" title="删除"><img alt="删除" src="/admin/img/cross.gif"></a>
                                    </span>	
                                </td>
                            </tr>
                        <?php } ?>

                    </tbody>
                </table>

                <?php echo View::make('admin.common.pager'); ?>

            </div>

        </div>    
    </div>

    <?php echo View::make('admin.common.footer'); ?>
    <script type="text/javascript">
        $(function() {
            $(".footable").footable();
        });
    </script> 
